import { defineStore } from "pinia"
export const userInfo = defineStore("userInfo", {
    state: () => ({
        name: "cc"
    }),
    getters: {
        getUserName(state) {
            return state.name
        }
    },
    actions: {
        setUserName(name) {
            this.name = name;
        }
    }
})
